//
//  TMOperationBaseNetworking.h
//  TMBabyWarehouseSDK
//
//  Created by rxk on 2019/5/8.
//  Copyright © 2019 Tianma. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TMSDK/TMSDK.h>
NS_ASSUME_NONNULL_BEGIN
typedef void(^TMBaseExitLoginComplate)(BOOL accountIsDelete, BOOL orderIsDelegate, NSString * _Nullable error);

@interface TMOperationBaseNetworking : NSObject
+(TMBaseNetworking *)tm_postWithUrlString:(NSString *)urlString
                            withParaments:(nullable id)paraments
                         withIsEncryption:(BOOL)isEncryption
                         withSuccessBlock:( TMRequestSuccessBlock)successBlock
                         withFailureBlock:( TMRequestFailureBlock)failureBlock;

+(TMBaseNetworking *)tm_getWithUrlString:(NSString *)urlString
                           withParaments:(nullable id)paraments
                        withIsEncryption:(BOOL)isEncryption
                        withSuccessBlock:( TMRequestSuccessBlock)successBlock
                        withFailureBlock:( TMRequestFailureBlock)failureBlock;

+ (void)loginTMOperationBaseWithSuccess:(TMHttpSuccess)success
                      failed:(TMHttpFailed)failed;



/**
 从框架同步信息到运营平台
 */
+ (void)tmbase_updateUserInfoWithSuccessBlock:( TMRequestSuccessBlock)successBlock
                                 failureBlock:( TMRequestFailureBlock)failureBlock;

+ (void)tmbase_getMemberInfoWithSuccessBlock:( TMRequestSuccessBlock)successBlock
                                failureBlock:( TMRequestFailureBlock)failureBlock;

+ (void)tmbase_syncPointInfoWithSuccessBlock:( TMRequestSuccessBlock)successBlock
                                failureBlock:( TMRequestFailureBlock)failureBlock;


+ (void)tmbase_cancelAccountWithComplate:(TMBaseExitLoginComplate)complate;
@end

NS_ASSUME_NONNULL_END
